// echart 基本配置
// echart 图表配色
export const COLOR = [
  '#204FD4',
  '#2ec7c9',
  '#F4B849',
  '#d5759f',
  '#498EFF',
  '#bc6ff1',
  '#edafda',
  '#25BEFF',
  '#ffa36c',
];
// 标题配置
export const TITLE = {
  textStyle: { fontSize: 16 },
};
// 图例配置 多出配置滚动条
export const LEGEND = {
  show: true,
  type: 'scroll',
  orient: 'horizontal',
  left: 'center',
  bottom: 0,
  pageIconSize: 12,
  textStyle: { fontSize: 11 },
};
// x轴配置
export const XAXIS = {
  axisLabel: {
    rotate: 0,
    interval: 0,
    margin: 10,
  },
};
// 图表布局容器配置
export const GRID = {
  left: '40px',
  right: '40px',
  bottom: '40px',
  containLabel: true,
};
// 折线图数据配置
export const SERIES_LINE = {
  type: 'line',
  width: '20%',
  smooth: true,
  label: {
    show: true,
    position: 'top',
    color: '#333',
    fontSize: 10,
  },
};
// 柱状图数据配置
export const SERIES_BAR = {
  type: 'bar',
  barMaxWidth: 30,
  barMinHeight: 5,
  label: {
    show: true,
    fontSize: 10,
    position: 'top',
    color: '#333',
  },
};
// 饼状图数据配置
export const SERIES_PIE = {
  type: 'pie',
  radius: [30, 150],
  center: ['50%', '50%'],
  bottom: '30px',
  // roseType: 'area',
  emphasis: {
    itemStyle: {
      shadowBlur: 10,
      shadowOffsetX: 0,
      shadowColor: 'rgba(0, 0, 0, 0.5)',
    },
  },
};
export const TOOLTIP = {
  show: true,
  trigger: 'axis',
};
